package cn.yangliu.comm;

/**
 * 作者 杨柳
 * 创建时间 2017-08-29 01:23
 */
public class BaseException extends RuntimeException {

    public static final long serialVersionUID = -7034897190745766928L;

    protected String msg;

    public BaseException() {

    }

    public BaseException(String msg) {
        super(msg);
        this.msg=msg;
    }

    public BaseException(Throwable t) {
        super(t);
        this.msg="系统错误,请联系管理员";
    }

    public BaseException(String msg, Throwable t) {
        super(msg, t);
        this.msg=msg;
    }

    public BaseException(String msg, Throwable t,
                         boolean enableSuppression,
                         boolean writableStackTrac) {
        super(msg, t, enableSuppression, writableStackTrac);
        this.msg=msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
